﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerData
{
    public Camera camera;

    // Bullet Type 子弹类型
    public Consts.BulletType bulletType = Consts.BulletType.Ball;
    // Bullet Auto Fire Cd 子弹自动发射Cd
    public float autoFireCd = 2.0f;
    // Bullet Speed 子弹速度
    public float bulletSpeed = 2.0f;
    // Bullet Harm 子弹伤害
    public float bulletHarm = 1.0f;

    // Tank Level, Score 等级, 分数
    public int level = 1;
    public int score = 0;
    // Total/Left Blood 玩家总/剩余血量
    public int Blood = 100;
    public int blood = 100;
    // Armor 护甲
    public float armor = 1.0f;
    // Tank Move Speed 坦克移动速度
    public float speedScrambler = 8.0f;

    public PlayerData(Camera camera)
    {
        this.camera = camera;
    }
}

public class Player : MonoBehaviour {
    
    // 角色预制体
    public GameObject PlayerPrefeb;

    // 子弹容器 And 子弹预制体
    public GameObject Bullets;
    public GameObject BulletPrefeb;
    public float offset = 0.0f;

    public PlayerData playerData;

    // Use this for initialization
    void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}
}
